E_invalidarg
Zero X 80070057
Parameter Error
E_outofmemory
0x8007000e
Memory Error
E_notimpl
Zero X 80004001
Not Implemented
E_pointer
Zero X 80004003
Invalid Pointer
E_handle
Zero X 80070006
Invalid handle
E_abort
Zero X 80004004
Terminate operation
E_accessdenied
Zero X 80070005
Access denied
E_nointerface
Z
1. What is the error?
This is a window error. If C, C # programming or Microsoft related products are used, such errors may occur. For example, use SQL Server or Sharepoint.2. What is hresult?
HresultIs a simple data type, which is usually used by attributes and ATL as return values. The following table describes different values. The header file winerror. h contains more values.
There are always winerror. H files in Visual Studio (in the path Vc \ platformsdk \ include)
Name
Descrip
Hresult
Value
Description
S_ OK
Zero X 00000000
Successful
S_false
Zero X 00000001
The function is successfully executed, but an error is returned.
E_invalidarg
Zero X 80070057
Parameter Error
E_outofmemory
0x8007000e
Memory application error
E_unexpected
0x8000ffff
Unknown exception
E_notimpl
Zero X 80004001
Features not implemented
E_fail
Zero
: Enter "regsvr32 urlmon. dll ", press enter and re-run the search window to restore.
Figure 5
5. correct the error of saving the mht webpage in IEClick the "File> Save as" command menu of Internet Explorer, select "Web email file (. mht)" in "Save type", and save the file as incorrect (6 ).
Figure 6
In the run input box, enter "regsvr32 inetcomm. dll" and press enter to solve the problem.If the prompt "Outlook Express cannot be started" is prompted when you use OE. The application cannot create
failure 0x8000ffff
E_notimpl is not 0x80004001
E_outofmemory failed to allocate the required memory 0x8007000e
One or more e_invalidarg parameters are invalid: 0x80070057
E_nointerface does not support the interface 0x80004002
Invalid e_pointer pointer 0x80004003
Invalid e_handle handle 0x80070006
E_abort operation suspended 0x80004004
Failure 0x80004005 not specified by e_fail
E_accessdenied error 0x80070005
The returned values cannot be compared wi
There is a project in the company that uses SQL2000 as the transfer station, updates data from the source database server (SQL2000) to the target database server (oracle 10 Gb), uses the link database, and implements it through the storage process. After running the stored procedure on a scheduled basis for a job for N years, it suddenly finds that one job cannot be executed normally, and the other job runs normally. It's inexplicable ....
Error Description: The execution is sometimes good and s
Lresult: Return Value of Windows process or callback function in Win32 environment hresult: Return Value of COM function and method
Hresult is a simple data type, which is usually used as the return value by attributes and ATL. The following table describes different values. The header file winerror. h contains more values.
Description
S_ OK operation successful 0x00000000
E_unexpected: unexpected failure 0x8000ffff
E_notimpl is not 0x80004001
E_outofmemory failed to allocate the required
1. SucceededThe prototype is as follows: BOOL succeeded ( HRESULT hr); corresponding definition (Specific implementation): #define SUCCEEDED (HR) ((HRESULT) (HR)) >= 0) 2. FAILEDThe prototype is as follows: BOOL FAILED ( HRESULT hr); corresponding definition (concrete implementation): #define FAILED (HR) ((HRESULT) (HR)) Note: Use these two macros to judge the return value HRESULT of a COM component; Because the HRESULT value is a return state, there may be many states, so you cannot direct
COM Component Design and Application (12)Handle errors and exceptionsAuthor: Instructor Yang
Download source code
I. PrefaceIn programming, error handling is essential and usually takes a lot of space. This return describes how to handle errors (Exceptions) in COM.In a component program, if an error occurs, there are two methods to handle it.
Ii. Simple returnFor a relatively simple error, the hresult indicating the cause of the error is directly returned. For example, the following are common e
The following table lists the values of common hresult values. More values are contained in the header file winerror. h.
Name
Description
Value
S_ OK
Operation successful
Zero X 00000000
E_unexpected
Unexpected failure
0x8000ffff
E_notimpl
Not Implemented
Zero X 80004001
E_outofmemory
Failed to allocate necessary memory
0x8007000e
E_invalidarg
One or more arguments
const uint PID_STG_CONTENTS = 0x00000013;
Public const uint PID_STG_SHORTNAME = 0x00000014;
Public const int FILTER_E_END_OF_CHUNKS = (unchecked (int) 0x80041700 ));
Public const int FILTER_E_NO_MORE_TEXT = (unchecked (int) 0x80041701 ));
Public const int FILTER_E_NO_MORE_VALUES = (unchecked (int) 0x80041702 ));
Public const int FILTER_E_NO_TEXT = (unchecked (int) 0x80041705 ));
Public const int FILTER_E_NO_VALUES = (unchecked (int) 0x80041706 ));
Public const int FILTER_S_LAST_TEXT = (unchecke
I. Preface
In programming, error handling is essential and usually takes a lot of space. This return describes how to handle errors (Exceptions) in COM.
In a component program, if an error occurs, there are two methods to handle it.
Ii. Simple return
For a relatively simple error, the hresult indicating the cause of the error is directly returned. For example, the following are common error values:
E_invalidarg
Zero X 80070057
Parameter Error
E_outofmemory
This article supporting source code
First, the preface
In programming, error handling is essential and usually takes up a lot of space. This read the method of handling errors (exceptions) that are landed in COM.
In a component program, if you encounter an error, there are generally two ways to handle it.
Second, simple return
For simpler errors, return directly to the HRESULT that represents the cause of the error. For example, here are some common error values:
E_invalidarg
possible that the server shutdown, network drop, running timeout, the other side is not in the service area ... and other exceptions. So the addition function, in addition to returning the result of the operation, should return a value------whether the function is properly executed.
HRESULT Add( long n1, long n2, long *pSum ) { *pSum = n1 + n2; return S_OK; }
If the function executes normally, it returns S_OK, while the actual function run results are returned through the parameter pointer. I
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.